#include "material.h"

namespace tls{
  material::~material(){}

  //---matte---
  bxdf* const* matte::get_bxdfs(const isect& hit)const{
    return bxdfs;
  }

  matte::~matte(){
    delete bxdfs[0];
  }

  void* create_matte(FILE* file){
    vec3 c;
    std::fscanf(file,"%lf%lf%lf",&c.x,&c.y,&c.z);
    return new matte(c);
  }

}//namespace tls
